/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gruppe1projekt.ModelLayer;

import java.util.Date;

/**
 *
 * @author Kristian Byrialsen
 */
public class Price
{
    private static int number = 1;
    private Date StartDate;
    private Date EndDate;
    private Employee Employee;
    private double Price;
    private boolean IsDiscount;
    private int ID;

    public Price(Date StartDate, Date EndDate, Employee Employee, int Price, boolean IsDiscount)
    {
        this.StartDate = StartDate;
        this.EndDate = EndDate;
        this.Employee = Employee;
        this.Price = Price;
        this.IsDiscount = IsDiscount;
    }

    public Price(double Price, boolean IsDiscount)
    {
        this.Price = Price;
        this.IsDiscount = IsDiscount;
    }

    public int getID()
    {
        return ID;
    }

    private void generateID()
    {
        this.ID = number++;
    }

    public Employee getEmployee()
    {
        return Employee;
    }

    public Date getEndDate()
    {
        return EndDate;
    }

    public boolean IsDiscount()
    {
        return IsDiscount;
    }

    public double getPrice()
    {
        return Price;
    }

    public Date getStartDate()
    {
        return StartDate;
    }

    public void setEmployee(Employee Employee)
    {
        this.Employee = Employee;
    }

    public void setEndDate(Date EndDate)
    {
        this.EndDate = EndDate;
    }

    public void setIsDiscount(boolean IsDiscount)
    {
        this.IsDiscount = IsDiscount;
    }

    public void setPrice(double Price)
    {
        this.Price = Price;
    }

    public void setStartDate(Date StartDate)
    {
        this.StartDate = StartDate;
    }

    @Override
    public String toString()
    {
        return String.valueOf(getPrice());
    }
}
